package com.jzy.gulimall.order.enume;

/**
 * @author jzy
 * @date 2020/9/21 17:21
 */
public enum  OrderCreateEnum {

    SUCCESS(0,"订单创建成功"),
    REPEAT(1,"订单重复提交"),
    PRICE_ERROR(2,"订单价格出现变动"),
    STOCK_ERROR(3,"商品库存不足");

    private Integer code;
    private String msg;

    OrderCreateEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
